from django.urls import path

from . import views
import comment.views as shitCV

app_name = 'blog'

urlpatterns = [
    path("edit/", views.EditView, name="edit"),
    path("update/<int:aid>/", views.UpdateView, name="update"),
    path("delete/<int:aid>/", views.DeleteView, name="delete"),
    path(
        "archieve/<usrname>/",
        views.ArchieveView.as_view(),
        name="archieve"
    ),
    path(
        "drafts/<usrname>/",
        views.DraftsView.as_view(),
        name="archieve"
    ),
    path(
        "article/<usrname>/<int:aid>/",
        views.ArticleDetailView.as_view(),
        name="article_detail"
    ),
    path(
        "post-comment/<int:article_id>/",
        shitCV.CommentView,
        name="post_comment"
    )
]
